package com.daxt.model.dic;

/**
 * 行为描述
 */
public enum BehaveLogType {

    ADD("1","添加"),      //添加
    UPDATE("2","修改"), //修改
    ONE_MOUNT("3","单条挂接文件"),   //单条挂接
    DELETE("4","删除"),// 删除
    ADD_ARCHIVIST("5","加入档案库"),  //加入档案库
    SEND_BACK_ZB("6","打回整编"),  //打回整编
    SEND_BACK_SJ("7","打回收集库"),  //打回收集库
    MOVE_SCATTERED("8","转移到散文件"),  //转移到散文件
    BORROW_APPLY("9","借阅申请"),  //借阅申请
    DEPT_AUDIT("10","部门负责人审批"),  //部门负责人审批
    OFFICE_AUDIT("11","办公室主任审批"),  //办公室主任审批
    ARCHIVIST_AUDIT("12","本单位档案员审批"),  //本单位档案员审批
    ADD_ARCHIVIST_INNER("13","添加到卷内文件"),  //添加到卷内文件
    BATCH_MOVE("14","批量移动"),  //批量移动
    HIT_SCATTERED("15","案卷打散"),//案卷打散
    BATCH_UPDATE("16","批量修改"),//批量修改
    ARCHIVIST("17","归档"),//归档
    RECOVER("18","恢复"),//恢复
    DELETE_FILE("19","删除附件"),//删除附件
    APPRAISAL("20","加入鉴定"),//加入鉴定
    DESTROY("21","销毁"),//销毁
    POSTPONE("22","延期"),//延期
    BATCH_MOUNT("23","批量挂接文件");  //批量挂接文件

    private String key;
    private String value;

    private BehaveLogType(String key, String value) {
        this.key = key;
        this.value = value;
    }
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }



    public static boolean hasKey(String key) {
        BehaveLogType[] values = BehaveLogType.values();
        for (BehaveLogType type : values) {
            if(type.name().equals(key)) {
                return true;
            }
        }
        return false;
    }
}
